﻿/**
 * Created in 2012-2-15.
 */
package kit4j.tests.jdk.lang;

/**
 * 
 * @author MiniKnife
 *
 */
public class TestNumber {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		testLongOverFlow();
	}
	
	static void testLongOverFlow() {
		long tbBytes = 1024 * 1024 * 1024 * 1024;
		long gbBytes = 1024 * 1024 * 1024;
		
		System.out.println(tbBytes);
		System.out.println(gbBytes);
		System.out.println(tbBytes / gbBytes);
		
		tbBytes = 1024L * 1024 * 1024 * 1024;
		gbBytes = 1024 * 1024 * 1024;
		
		System.out.println(tbBytes);
		System.out.println(gbBytes);
		System.out.println(tbBytes / gbBytes);
	}

}
